package com.example.authority.entity;
import com.alibaba.excel.annotation.ExcelIgnore;
import com.example.authority.entity.User ;
import com.alibaba.excel.annotation.ExcelIgnore;
import com.example.authority.entity.Seek ;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Builder;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

    import lombok.experimental.Accessors;


/**
 * @program:   
 * @ClassName:Downloadlog
 * @description: 下载记录 实体类
 *       
 * @Version 3.0
 **/

@Data
    @Builder(toBuilder = true)
    @AllArgsConstructor
    @NoArgsConstructor
@TableName("sys_downloadlog")
@Schema(title = "Downloadlog对象", description = "下载记录")
    public class Downloadlog implements Serializable{

    private static final long serialVersionUID = 1L;
        @Schema(title = "序列号")
                @TableId(value = "id", type = IdType.AUTO)
        @ExcelProperty("序列号")
private Long id;
        @Schema(title = "下载用户")
    @TableField("uid")
@ExcelProperty("下载用户")
private Long uid;
        @Schema(title = "种子名称")
    @TableField("sid")
@ExcelProperty("种子名称")
private Long sid;
        @Schema(title = "下载时间")
                @TableField(value = "create_time", fill = FieldFill.INSERT)
        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@ExcelProperty("下载时间")
private LocalDateTime createTime;
        @TableField(exist = false)
        @ExcelIgnore
        private User user = new User ();
        @TableField(exist = false)
        @ExcelIgnore
        private Seek seek = new Seek ();
}
